package com.xunfang.service.impl;

import com.xunfang.bean.Permission;
import com.xunfang.mapper.PermissionMapper;
import com.xunfang.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yellow Docter
 * @date 2023 -11-01
 * @desc
 */
@Service
public class PermissionServiceImpl implements IPermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> findPermissionByUsername(String username) {
        return permissionMapper.findPermissionByUsername(username);
    }

}
